package prettypenny;

public class Car {
    private int carID;
    private String carMake;
    private String carModel;
    private String carFuel;
    private String carReg;
    private String carMiles;
    private boolean hireCar;
    

    /* DB Struture
     * car: carId, make, model, fuelType, regNum, hireCar
     * carService: serviceID, clientId, carId, locationId, mechanicId, typeId, serviceDate, serviceTime, serviceDurationHour, description, price, bookingDate, mileage
     * client: clientId, forname, surname, dob, addLine1, addLine2, city, county, postcode, homeNum, mobileNum, email
     * location: locationId, branch
     * mechanic: mechanicId, forename, surname, mobNum
     * serviceType: typeId, typeOfService
     */
   
        
    public Car(int id, String make, String model, String fuel, String reg, boolean hireCar) {
        this.carID = id;
        this.carModel = model;
        this.carFuel = fuel;
        this.carReg = reg;
        this.carMake = make;
        this.hireCar = hireCar;
    }

    public void setMake(String value) {
        this.carMake = value;
    }
    public void setModel(String value) {
        this.carModel = value;
    }
    public void setFuel(String value) {
        this.carFuel = value;
    }
    public void setReg(String value) {
        this.carReg = value;
    }
    public void setID(int value) {
        this.carID = value;
    }
    public boolean getHireCar() {
        return this.hireCar;
    }
    public int getID() {
        return this.carID;
    }
    public String getMake() {
        return carMake;
    }
    public String getModel() {
        return carModel;
    }
    public String getFuel() {
        return carFuel;
    }
    public String getReg() {
        return carReg;
    }
    
}
